package com.atguigu.yygh.cmn.service;

import com.atguigu.yygh.model.cmn.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author:ahang
 * @create:2022-08-30 9:37
 * @Description:
 */
public interface DictService extends IService<Dict> {
    List<Dict> findChildData(Long id);

    void exportData(HttpServletResponse response);

    void inportData(MultipartFile file);

    //根据parentdiccode和value来查找对应的名称
    String getNameByParentDictCodeAndValue(String parentDictCode,String value);

    //根据dictcode查询所有省份
    List<Dict> findByDictcode(String dictCode);
}
